package com.aiguigu.gulimall.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 
 * @ClassName GuliMallAuthServerApplication
 * @Description *
 * 核心原理
 * 1）、@EnableRedisHttpSession导入RedisHttpSessionConfiguration配置
 * 1、给容器中添加了一个组件
 * RedisOperationsSessionRepository：Redis操作session，session的增删改查封装类
 * @Author xufb
 * @Date 2023/10/22 10:25:55
 * @Version 1.0
 */
@EnableRedisHttpSession // 开启springSession，将session数据存入redis中
@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication
public class GuliMallAuthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(GuliMallAuthServerApplication.class, args);
    }

}
